package com.microcore.service.asserts.condition;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 连接运算符
 *
 * @author LeiZhenYang
 * @date 2019.01.07
 */
public class LinkCondition {

    /**
     * 并且
     */
    public static String and = "AND";

    /**
     * 或者
     */
    public static String or = "OR";


    /**
     * 条件集合
     */
    private static List<Map<String, String>> conditions = new ArrayList<>();

    static {
        Map<String, String> condition = new HashMap<>();
        condition.put("key", and);
        condition.put("value", "并且");
        conditions.add(condition);
        // 暂时不要OR条件
        //Map<String, String> condition = new HashMap<>();
        //condition.put("或者", or);
        //conditions.add(condition);
    }

    /**
     * 获取条件集合
     *
     * @return
     */
    public static List<Map<String, String>> getConditions() {
        return conditions;
    }
}
